bitkeeper revision 1.1159.97.3 (415c6936SE2JuWey2d_QmYIvVEKObw)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 30 Sep 2004 20:14:46 +0000 (20:14 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 30 Sep 2004 20:14:46 +0000 (20:14 +0000)
Tiny time fix.

linux-2.6.8.1-xen-sparse/arch/xen/i386/kernel/time.c

index 83b496d338e6f0eb830158946612540138c12278..edcc18dfd981e789d6efe5f7dd8a3958841d1aa0 100644 (file)
@@ -126,14 +126,14 @@ u64 processed_system_time;   /* System time (ns) at last processing. */
                (_tv).tv_sec++;                 \
        }                                       \
 } while (0)
-static inline void __normalize_time(time_t *sec, s64 *usec)
+static inline void __normalize_time(time_t *sec, s64 *nsec)
 {
-       while (*usec >= NSEC_PER_SEC) {
-               (*usec) -= NSEC_PER_SEC;
+       while (*nsec >= NSEC_PER_SEC) {
+               (*nsec) -= NSEC_PER_SEC;
                (*sec)++;
        }
-       while (*usec < NSEC_PER_SEC) {
-               (*usec) += NSEC_PER_SEC;
+       while (*nsec < 0) {
+               (*nsec) += NSEC_PER_SEC;
                (*sec)--;
        }
 }